//---------------------------------------------------------------------------


#pragma hdrstop

#include "BFITextSymbol.h"
//#include "Unit1.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)

BFITextSymbol::BFITextSymbol(String Character,TCanvas* Canvas, /*int font_size,*/ bool isInversed)
	:BFISymbol(Canvas,/*font_size,*/isInversed)
{
	this->symbol = Character;
}

int BFITextSymbol::width()
{
//	ShowMessage(IntToStr(Canvas->TextWidth(symbol)));
	return Canvas->TextWidth(symbol);
}

void BFITextSymbol::draw(int x, int y)
{
	X = x;
	Y = y;
	TCanvas* Canvas = this->Canvas;
	Canvas->TextOutW(x,y,symbol);
}

void BFITextSymbol::setSymbol(String Character)
{
	this->symbol = Character;
	//ShowMessage(IntToStr(Canvas->TextWidth(symbol)));
}

String BFITextSymbol::getSymbol()
{
	return this->symbol;
}

